package com.lizardmind.haofudoctor.ui.studio.serviceSetting

import android.databinding.ObservableArrayList
import android.databinding.ObservableField
import android.databinding.ObservableInt
import com.linxiao.framework.viewModel.LifecycleViewModel
import com.lizardmind.haofudoctor.R
import com.lizardmind.haofudoctor.other.DiagnoseDocumentsBean
import com.lizardmind.haofudoctor.other.ServiceSettingBean
import com.luck.picture.lib.entity.LocalMedia

/**
 *  服务设置界面的viewmodel
 * Created by Extends on 2017/11/10 15:57
 */
class ServiceSettingVM : LifecycleViewModel() {
    var welcome = ObservableField<String>("")
    val maxCount = 300
    var charge = ObservableField<String>("0")
    var disturb = ObservableInt(0)
    var time = ObservableField<String>("")
    var week = ObservableField<String>("")
    var supplement = ObservableField<String>("")

    fun initData(data: ServiceSettingBean){
        welcome.set(data.welcome?:"")
        charge.set(data.charge?:"")
        disturb.set(data.disturb?:0)
        time.set(data.time?:"")
        week.set(data.week?:"")
        supplement.set(data.supplement?:"")
    }
}